   <?
      $support_online = support_online();
   ?>
<div class="header">
   <div class="header_inner">
      <div class="logo">
         <a href="/"><img src="<?=TEMPLATE_PATH?>images/logo.png"/></a>
      </div>
   <div class="right_header">
      <div class="right_header_top">
         <div class="company_info">
            <p class="company_name"><?=$support_online['spo_company_name']?></p>
            <p class="company_address">Địa chỉ : <?=$support_online['spo_company_address']?></p>
            <div class="hotline"> <span><?=$support_online['spo_hotline']?></span></div>
            <p class="consulting">Tư vấn bán hàng: <?=$support_online['spo_consulting_phone']?></p>
         </div>
         <div class="cart">
            <img src="<?=TEMPLATE_PATH?>images/cart.jpg"/>
            <a class="your_cart" href="/gio-hang.html"><?=(isset($_SESSION['cart'])) ? count($_SESSION['cart']) : 0 ?> sản phẩm</a>
         </div>
      </div>
      <div class="menu_main">
         <ul>
            <li><a href="/">Trang chủ</a></li>
            <li><a href="<?=generate_page_detail_url(page_static('introduction'))?>">Giới thiệu</a></li>
            <li><a href="/san-pham.html">Sản phẩm</a></li>
            <li><a href="<?=generate_page_detail_url(page_static('service'))?>">Dịch vụ</a></li>
            <li><a href="/tin-tuc/">Tin tức</a></li>
            <li><a href="/lien-he.html">Liên hệ</a></li>
         </ul>
         <div class="search_wrap">
            <form action="" method="POST" name="frm_search" class="frm_search">
               <p>Tìm kiếm</p><input type="text" name="keyword" value="" class="keyword_search"/>
            </form>
         </div>
         <div class="e_catalog">
            <a href="/e-catalog.html"><p>E-Catalog</p><img src="<?=TEMPLATE_PATH?>images/arrow.png"/></a>
         </div>
      </div>
   </div>
   </div>
</div>
<script type="text/javascript">
   $('.keyword_search').on('keypress',function(event) {
      if(event.which == 13){
         var keyword = $('.keyword_search').val();
         var sUrl = '/tim-kiem/'+keyword;
         $('.frm_search').attr('action',sUrl);
         document.frm_search.submit();
      }
   });
</script>